package com.pf.java.fanxing;

import java.util.ArrayList;
import java.util.List;

/**
 * 泛型
 *
 * @author pf
 * @data 2021/11/2-15:27
 */
public class fanxing {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("John");
        list.add("Mary");
        list.add("Lily");
//        list.add(1000);
        for (String name : list) {
            System.out.println(name.toUpperCase());
        }




    }

}
